package homework;

import java.util.Scanner;

/**
 * @Author Stringzhua
 * @Date 2024/1/28 20:38
 * description:
 */
public class If03 {
    public static void main(String[] args) {
        Scanner myScanner=new Scanner(System.in);
        System.out.println("请输入马保国同志的信用分:");
        int grade= myScanner.nextInt();
        //输入范围的判定
        if(grade>=1&&grade<=100){
            //4种情况
            if(grade==100){
                System.out.println("信用极好~");
            } else if (grade>80&&grade<=99) {
                System.out.println("信用优秀~");
            } else if (grade>=60&&grade<=80) {
                System.out.println("信用一般~");
            }else{
                System.out.println("信用较差~");
            }
        }else {
            System.out.println("信用分需要在1~100,请重新输入！！！范围有误~");
        }
    }
}
